package edu.zut.bailan.timecard.domain;
import edu.zut.bailan.base.domain.BaseEntity;
import edu.zut.bailan.score.domain.ScoreCategory;

import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "T_PRODUCT")
public class TimeCard extends BaseEntity<Long> {

    private static final long serialVersionUID = -1691237174257609434L;


    @Column
    String name;



    @Column
    String code;


    @Column
    Integer price;


    @Column
    String type;


    @Column
    Integer num;


    @ManyToOne
    @JoinColumn(name = "PRODUCT_CATEGORY_ID")
    TimeCardCategory timeCardCategory;

    public TimeCardCategory  gettimeCardCategory () {
        return timeCardCategory;
    }

    public void setTimeCardCategory(TimeCardCategory  timeCardCategory ) {
        this.timeCardCategory =timeCardCategory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
